package com.example.contentprovidermodule

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ListView
import androidx.core.content.contentValuesOf

class MainActivity : AppCompatActivity() {
    private lateinit var listView:ListView
    private val personList=ArrayList<Person>()
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)


        this.listView=findViewById(R.id.lv_main_contact)
        personList.add(Person("19818966160","yzc","yzc","yzc"))
        this.listView.adapter=PersonAdapter(this,R.layout.listview_item,personList)
    }
}